package com.anjie.powerproject.repository;

import com.anjie.powerproject.entity.EnergyType;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface EnergyTypeRepository extends JpaRepository<EnergyType,Integer> {
    List<EnergyType> findEnergyTypesByTypeNameEquals(String typeName);

    EnergyType findEnergyTypeByTypeName(String typeName);
}
